#include <iostream>
#include "Socket.h"

using namespace std;

// #ifdef WINDOWS
// WORD            XSocket::sockVersion;
// WSADATA         XSocket::wsData;
// #endif


XSocket::XSocket() 
{
    #ifdef WINDOWS
    sockVersion = MAKEWORD(2, 2);
	if (WSAStartup(sockVersion, &wsData) != 0)
	{
		cout << "win socket init error"<< endl;
	}
    #endif
}

XSocket::~XSocket(){
	cout << "~XSocket"<< endl;
}